<?php

namespace App\Http\Controllers\Api\V1;

use App\Models\DrinkCategory;
use App\Http\Controllers\Api\V1\Resources\DrinkCategoryResource;

class DrinkCategoriesController extends Controller
{
    public function index()
    {
    	$categories = DrinkCategory::query()->orderBy('order')->get();
    	return DrinkCategoryResource::collection($categories);
    }
}
